package com.ruoyi.web.mnt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设施巡维记录业务对象 mnt_history
 *
 * @author LIUJUN
 * @date 2022-06-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MntHistoryBo extends BaseEntity {

    /**
     * 维修记录ID
     */
    @NotNull(message = "维修记录ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设施名称
     */
    @NotBlank(message = "设施名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String facilityName;

    /**
     * 维保类型
     */
    @NotBlank(message = "负责人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mgrName;

    /**
     * 负责人姓名
     */
    @NotBlank(message = "维保类型不可以为空", groups = { AddGroup.class, EditGroup.class })
    private String mntType;

    /**
     * 值班时间
     */
    @NotNull(message = "值班时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date dutyDate;
}
